/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.anism.holidays.services;

import javax.ejb.EJB;
import javax.jws.WebService;
import javax.ejb.Stateless;
import org.anism.holidays.entities.Employee;
import org.anism.holidays.sessionbeans.Authentication;

/**
 *
 * @author user
 */
@WebService(serviceName = "AuthTest")
@Stateless()
public class AuthTest {

    @EJB
    private Authentication authentication;

    public Boolean auth(String employeeID, String password) {
        Employee e = authentication.authenticate(employeeID, password);
        if (e == null) {
            return false;
        }
        return true;
    }
}
